﻿#region

using System.ComponentModel.DataAnnotations;

#endregion

namespace Vin.Extension.Framework.Login.Dto.Entities;

public class SysAccountDto
{
}

public class ResetPasswordDto
{
    [Required(ErrorMessage = "旧密码不能为空")] public string OldPassword { get; set; } = null!;

    [Required(ErrorMessage = "新密码不能为空")] public string Password { get; set; } = null!;

    [Required(ErrorMessage = "确认密码不能为空")]
    [Compare(nameof(Password), ErrorMessage = "两次密码不一致")]
    public string ConfirmPassword { get; set; } = null!;
}

public class LoginBodyDto
{
    /// <summary>
    /// 账号
    /// </summary>
    [Required(ErrorMessage = "账号不能为空")]
    public string UserName { get; set; } = null!;

    /// <summary>
    /// 密码
    /// </summary>
    [Required(ErrorMessage = "密码不能为空")]
    public string Password { get; set; } = null!;
    
    /// <summary>
    /// 验证码
    /// </summary>
    [Required(ErrorMessage = "验证码不能为空")]
    public string Code { get; set; } = null!;
    
    /// <summary>
    /// 验证码uuid
    /// </summary>
    public string Uuid { get; set; } = null!;
}